import request from '@/utils/request'

// 查询饲料更换列表
export function listFeedchangelog(query) {
    return request({
        url: '/feedchangelog/feedchangelog/list',
        method: 'get',
        params: query
    })
}

// 查询饲料更换详细
export function getFeedchangelog(id) {
    return request({
        url: '/feedchangelog/feedchangelog/' + id,
        method: 'get'
    })
}

// 新增饲料更换
export function addFeedchangelog(data) {
    return request({
        url: '/feedchangelog/feedchangelog',
        method: 'post',
        data: data
    })
}

// 修改饲料更换
export function updateFeedchangelog(data) {
    return request({
        url: '/feedchangelog/feedchangelog',
        method: 'put',
        data: data
    })
}

// 删除饲料更换
export function delFeedchangelog(id) {
    return request({
        url: '/feedchangelog/feedchangelog/' + id,
        method: 'delete'
    })
}


export function getBatchmanagementId() {
    return request({
        url: '/feedchangelog/feedchangelog/quereybatch',
        method: 'get',
    })
}

export function getquereyfeedname() {
    return request({
        url: '/feedchangelog/feedchangelog/quereyfeedname',
        method: 'get',
    })
}
